<?php
class Zfb_Paginator extends Zend_Paginator
{
	public static function factory($data, $page = 1, $adapter = self::INTERNAL_ADAPTER,
                                   array $prefixPaths = null){
		$paginator = parent::factory($data,$adapter,$prefixPaths);
		$paginator->setItemCountPerPage($this->getCountPerPage());
		$this->setCurrentPageNumber($page);
		return $paginator; 
	}
	
	public function getCountPerPage()
	{
		//@todo implement getting from config
		throw new BadMethodCallException('Not yet implemented.');
	}
}